<template>
  <button @click="isShow = !isShow">显示隐藏</button>
  <Demo v-if="isShow"></Demo>
  <Test></Test>
</template>

<script>
import { ref } from 'vue'
import Demo from './components/demo.vue'
import Test from './components/test.vue'
export default {
  name: 'App',
  components:{
    Demo,
    Test
  },
  setup(){
    let isShow = ref(true)
    return {
      isShow
    }
  }

}
</script>

<style>

</style>
